home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Utilities / MW II Launcher ƒ / MW Launch note < prev   
Text File  |  1989-06-20  |  3KB  |  63 lines

  1. Those of you who have got MacWrite II will by now be either pretty
  2. fed up at not being able to double-click on old MacWrite files or else
  3. kept a copy of MacWrite on your disk just to do this. Well, I got pretty
  4. fed up, so here is a simple application that just launches MacWrite II
  5. when old MacWrite files are double-clicked. Simply put it into the
  6. same folder as MacWrite II. Throw away MacWrite 5.0 or 4.5 first before
  7. copying MW launcher on to your disk. It may be necessary in some
  8. circumstances to rebuild the desktop (hold down option-command keys
  9. when launching the Finder).
  10.  
  11. NB. The program is pretty crude: it simply launches the 1st application
  12. in the same folder as itself that has a Finder creator of "MWII". Actually,
  13. the creator is read from the 'fCre' resource in the launcher, so you can
  14. change this to launch other apps if you want (don't forget to change the
  15. BNDL resource). You might want to do this for MacDraw for example.
  16.  
  17. Many thanks to Apple for Tech Note 126 from which I have shamelessly
  18. copied most of the code.
  19.  
  20. Have fun!
  21.  
  22. Sak Wathanasin
  23. Linotype Ltd
  24. R & D Dept
  25. Bath Road
  26. Cheltenham
  27. Glos. GL53 7LR
  28. UK
  29. (+44) 242 222 333 x206
  30.  
  31. This program and source code is in the public domain.
  32. ----
  33. How to hack the launcher to launch other appls
  34.  
  35. Suppose you want to make it launch MacDraw II when you dbl-click on MD 1.x
  36. docs. Here are the steps:
  37.  
  38.  1) copy "MW launcher" to blank floppy (it's quicker & easier to rebuild
  39.     the desktop on a floppy)
  40.  2) rename it (eg "MD launcher")
  41.  3) launch ResEdit
  42.  4) open orig appl if you have it
  43.  5) copy the BNDL, ICN#, and FREF resources
  44.  6) Paste into launcher (yes, you want to replace resources with same id).
  45.    If you don't have the orig appl, concoct BNDL, FREF & ICN# resources
  46.     (see IM 3 Chp 1).
  47.  7) Create a signature resource (eg MDRW id 0); this doesn't have
  48.    to contain anything, but it's useful to put a timestamp in it.
  49.  8) Delete the "MACA" resource (which was the signature resource for
  50.    the MW launcher)
  51.  9) close the file and save the changes
  52.  10) select the file and "Get Info" on it
  53.  11) change the creator to be the same as the signature resource (eg MDRW)
  54.     NB the system is case sensitive
  55.  12) save changes and quit ResEdit
  56.  13) eject the floppy & reinsert while holding down cmd and opt keys
  57.  14) "Yes", you want to rebuild desktop
  58.  15) Trash the orig appl on your HD
  59.  16) Copy the launcher into the same folder as the new appl you want to
  60.     launch (eg MacDraw II)
  61.  17) Test by dbl-clicking an old doc.
  62.  18) If it doesn't work, you may have to rebuild the desktop on your HD.
  63.